﻿// -----------------------------------------------------------------------
// Copyright (c) David Kean. All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.IO;

namespace Portable
{
    public static class StreamFactory
    {
        public static Stream CreateReadableStream()
        {
            var mock = MockFactory.CreateMock<Stream>();
            mock.Setup(s => s.CanRead)
                .Returns(true);
            
            return mock.Object;
        }

        public static Stream CreateWritableStream()
        {
            var mock = MockFactory.CreateMock<Stream>();
            mock.Setup(s => s.CanWrite)
                .Returns(true);

            return mock.Object;
        }
    }
}
